Theme: Add Tokens "Introduction" Storybook page#78449
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Flaky tests detected in 023fea1. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/26163358045
|
What?
Updates Storybook to add a "Design System/Tokens/Introduction" page that surfaces content from
@wordpress/theme'stokens.md.Related: #78438
Why?
Paired with #78438, this document is becoming a canonical reference for what tokens exist and how to use them. Currently it lives as a document in the package but isn't surfaced anywhere outside the code or GitHub repository view. Surfacing it in Storybook makes it more accessible for human readers.
How?
Adds a new
.mdxStory file that mirrors to the existing file.Advantage over renaming the file from
.mdto.mdx:tokens.mdfile directly from its GitHub URLTesting Instructions
Verify in Storybook:
npm run storybook:devtokens.mdScreenshots or screencast
Use of AI Tools
Claude Code with Opus 4.7. Manual intervention to shift code to
packages/themeout of rootstorybook/and exempt ESLint rules.